package com.xhwl.centiotdata.pojo.constant;

/**
 * @Author： guan
 * @Description： 海康云眸
 * @Date 2022/05/10/ 09:58
 */
public final class HaiKangYunMouConstant {

    public static final Integer SUCCESS_CODE = 200;

    public static final Integer THREE_DAYS = 3 * 24 * 60;

    public static final String ACCESS_TOKEN = "access_token";
    public static final String EXPIRES_IN = "expires_in";
    public static final String CLIENT_ID = "client_id";
    public static final String CLIENT_SECRET = "client_secret";
    public static final String GRANT_TYPE = "grant_type";
    public static final String CLIENT_CREDENTIALS = "client_credentials";
    public static final Integer DEFAULT_IDENTITY_TYPE = 3;//海康云眸住户类型 默认家属



    public static final String CONSUMER_ID = "consumerId";
    public static final String CONSUMER_NAME = "consumerName";
    public static final String AUTO_COMMIT = "autoCommit";
    public static final String COMMUNITY_ID = "communityId";
    public static final String PROJECT_ID = "projectId";
    public static final String PAGE_NO = "pageNo";
    public static final String PAGE_SIZE = "pageSize";
    public static final String PERSON_ID = "personId";
    public static final String PERSON_IDS = "personIds";
    public static final String PERSON_TYPE = "personType";
    public static final String OPERATION_TYPE = "operationType";
    public static final String DEVICE_IDS = "deviceIds";
    public static final String DEVICE_ID = "deviceId";
    public static final String VISITOR_NAME = "visitorName";
    public static final String GENDER = "gender";
    public static final String PHONE = "phone";
    public static final String MOBILE = "mobile";
    public static final String PERSON_NAME = "personName";
    public static final String FACE_URL = "faceUrl";
    public static final String ROOM_ID = "roomId";
    public static final String VISITOR_EFFECTIVE_TIME = "visitorEffectiveTime";
    public static final String VISITOR_LEAVE_TIME = "visitorLeaveTime";
    public static final String RESERVATION_ID = "reservationId";
    public static final String HAS_NEXT_PAGE = "hasNextPage";
    public static final String ROWS = "rows";
    public static final String VISITOR_CODE = "visitorCode";
    public static final String VISIT_REASON = "visitReason";
    public static final String CREDENTIAL_TYPE = "credentialType";
    public static final String CREDENTIAL_NUMBER = "credentialNumber";

    /**
     * eventType-事件类型：
     * AccessEvent-门禁事件（类型为门禁）
     * AlarmEvent-报警事件
     * IntercomEvent-对讲事件
     */
    public static final String ACCESS_EVENT = "AccessEvent";
    public static final String ALARM_EVENT = "AlarmEvent";
    /**
     * 门禁事件订阅的推送消息
     */
    public static final String COMMUNITY_EVENT_ACCESS = "community_event_access";
    /**
     * 告警事件订阅的推送消息
     */
    public static final String COMMUNITY_EVENT_ALARM = "community_event_alarm";

    /**
     * 厂商：业务：项目id
     * hik_cloud:token:1248
     */
    public static final String TOKEN = "hik_cloud" + ":" + "token" + ":";
    public static final String CONFIG = "hik_cloud"+ ":" + "config" + ":";
    public static final String QR = "hik_cloud"+ ":" + "QR" + ":";
    public static final String CREATE_CONSUMER_ID = "hik_cloud"+ ":" + "consumerId" + ":";
    public static final String DEVICE = "hik_cloud"+ ":" + "device" + ":";
    public static final String COMMUNITY_ID_AND_PROJECT = "hik_cloud"+ ":" + "communityIdAndProject" + ":";



    /**
     * doc:
     * https://pic.hik-cloud.com/opencustom/apidoc/online/neptune/4cb4c4f2147e4624bc29408ac70e92c4.html
     * host
     */
    public static final String HOST = "https://api2.hik-cloud.com";
    /**
     * api
     */
    public static final String TOKEN_URL = "/oauth/token";
    /**
     * 创建消费者
     */
    public static final String CREATE_MQ_CONSUMER = "/api/v1/mq/consumer/group1";
    /**
     * 消费消息
     */
    public static final String CONSUMING_MESSAGES = "/api/v1/mq/consumer/messages";
    /**
     * 提交偏移量
     */
    public static final String SUBMIT_OFFSET = "/api/v1/mq/consumer/offsets";
    /**
     * 查询社区下的设备列表
     */
    public static final String DEVICES = "/api/v1/estate/devices/actions/listByCommunityId";
    /**
     * 新增住户人员信息。
     */
    public static final String PERSON_ADD = "/api/v1/estate/system/person";
    /**
     * 更新住户人员信息。
     */
    public static final String PERSON_UPDATE = "/api/v1/estate/system/person/actions/updatePerson";
    /**
     * 删除住户人员信息。
     */
    public static final String PERSON_DELETE= "/api/v1/estate/system/person";
    /**
     * 设置住户人员所属社区。
     */
    public static final String PERSON_COMMUNITY_ADD = "/api/v1/estate/system/person/actions/addCommunityRelation";
    /**
     * 住户人员权限批量下发。
     */
    public static final String BATCH_AUTHORITY_ISSUED = "/api/v1/estate/entranceGuard/permissions/actions/batchAuthorityIssued";
    /**
     * 人员权限删除。
     */
    public static final String AUTHORITY_DELETE = "/api/v1/estate/entranceGuard/permissions/actions/authorityDelete";
    /**
     * 访客登记（预约）。
     */
    public static final String VISITORS = "/api/v1/estate/visitors";
    /**
     * 访客删除
     * /api/v1/estate/visitors/{reservationId}
      */
    public static final String DELETE_VISITORS = "/api/v1/estate/visitors/";
    /**
     * 获取人员户室信息
     */
    public static final String ROOM_LIST = "/api/v1/estate/system/person/actions/roomList";

    /**
     * 获取人员门禁设备信息
     */
    public static final String DEVICE_LIST = "/api/v1/estate/entranceGuard/remoteControl/actions/deviceList";

}
